﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Reflection;

namespace ProfileFactory
{
    public class DataAccess
    {
        private static readonly string profilePath = ConfigurationManager.AppSettings["ProfileDAL"];
        public static IProfileDAL.IiBookShopProfileProvider CreateiBookShopProfileProvider()
        {
            string className = profilePath + ".iBookShopProfileProvider";
            return (IProfileDAL.IiBookShopProfileProvider)Assembly.Load(profilePath).CreateInstance(className);
        }
    }
}
